<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>工程延期</title>
<script>
	$(function(){
		var gridParam = {
			url:"/console/com.fs.jzzn.pojo.Postpone/list",
			sort:"createTime",
			order:"desc",
			queryParams:{
				rightControl: true
			},
			columns:[[
			          {field: 'pNo', title: '路段编号', width: 180}
			    	 ,{field: 'changeDate', title: '调整日期', width: 120}
			    	 ,{field: 'overDate', title: '调整后工期', width: 120}
			    	 ,{field: 'remark', title: '调整原因', width: 180}
			    	 ,{field: 'department', title: '关联项目部', width: 120}
			    	 ,{field : 'createTime',title: '创建时间',width : 130}
					,{field : 'createrName',title: '创建人',width : 130}
					]]
		};
		p.dataGrid = $(p.dataGrid).datagrid($.extend({}, p.dataGridParam,gridParam));
		/*事件响应*/
		$("#toolbar .easyui-linkbutton").on("click", function() {
			var motion_code = $(this).attr("motion_code");p.btnOneClick($(this));
			switch (motion_code) {
				case "01":
					p.gridAdd({title : "工程延期新增" ,width : 600, height : 300 });
					break;
				case "02":
					p.gridModify({title : "工程延期编辑" ,width : 600, height : 300 });
					break;
				case "03":
					p.gridDelete({ msg:"您确认删除当前选中工程延期记录？" });
					break;
				case "04":
					p.gridView({title : "工程延期查看" ,width : 600, height : 300 });
					break;
				case "05":
					p.gridQuery();
					break;
				case "07":
					p.down({filename:'工程延期'});
					break;
				default:
					break;
				}
		});
	});
</script>
</head>
<body class="easyui-layout">
	<!-- 单行高度33px，多行时 33乘以行数  -->
	<div data-options="region:'north',split:false,border:false" style="height:33px;">
		<div class="easyui-panel" data-options="fit:true,border:false">
			<form id="queryForm" >
				 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Postpone" />
				 <div style="margin-top:5px;margin-left:10px;float:left;">
				  <input class="easyui-textbox" name="pNo" style="width:240px;" data-options="label:'路段编号:',required:false" />
				<input type="hidden" name="pNo_searchType" value="like" />
				 </div>
			</form>
		</div>
	</div>
	<!-- 工具栏按钮 -->
	<div id="toolbar" class="easyui-panel" style="padding:3px;">
	</div>
	
	<!-- 表格 -->
	<div region="center" border="false">
		<table id="dataGrid"></table>
	</div>
</body>
</html>